/**
 * Main File for the Workload Generator
 */
#include <stdio.h>
#include <pthread.h>
#include "random.h"
#include "generator.h"
#include "cpu.h"
#include "disk.h"
#include "resource_model.h"

int main(void) {
  setup_random_environment();
  cJSON *json = parse_config();
  pthread_t threads[5];
  workload_generator(json, "cpu", setup_cpu, &threads[0]);
  workload_generator(json, "disk", setup_disk, &threads[1]);
  pthread_join(threads[0], NULL);
}
